package com.dmz.workflow.util;

import lombok.Data;

import java.util.concurrent.ConcurrentHashMap;

@Data
public class TemporaryStatus {
    private static final TemporaryStatus TEMPORARY_STATUS = new TemporaryStatus();

    private ConcurrentHashMap<String, String> processInstanceStatusData = new ConcurrentHashMap<>();

    public static TemporaryStatus getInstance() {
        if (TEMPORARY_STATUS == null) {
            return new TemporaryStatus();
        }
        return TEMPORARY_STATUS;
    }

}
